package com.company.二叉树;

/***
 * @author jianjian.zhang
 * @date 2022/07/24 18:20
 * @param
 * @return
 * @description: 二叉树节点信息
 */

public class TreeNode {

    public TreeNode left;
    public TreeNode right;
    public int data;

    public TreeNode() {
    }

    public TreeNode(int data) {
        this.data = data;
    }

    public TreeNode getLeft() {
        return left;
    }

    public void setLeft(TreeNode left) {
        this.left = left;
    }

    public TreeNode getRight() {
        return right;
    }

    public void setRight(TreeNode right) {
        this.right = right;
    }

    public int getData() {
        return data;
    }

    public void setData(int data) {
        this.data = data;
    }
}
